package com.mzj.saas.mservice.member.controller;

import com.mzj.saas.commons.ResultBean;
import com.mzj.saas.mservice.member.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/member")
public class MemberController {
    @Autowired
    private MemberService memberService;

    /*
     *人员管理-显示人员列表
     */
    @PostMapping(value = "peopleManagerList")
    @ResponseBody
    public ResultBean<Object> peopleManagerList(@RequestHeader String accessToken,
                                                @RequestParam(defaultValue = "0") Integer pageNumber,
                                                @RequestParam(defaultValue = "10") Integer pageSize) {
        return memberService.peopleManagerList(accessToken, pageNumber, pageSize);
    }


}
